package com.luckku.boot.model.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;
import lombok.experimental.Accessors;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;

/**
 *
 * @author  luckku
 * @date 2021-12-19
 */

@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName ( "order_info" )
public class OrderInfo  implements Serializable {


	/**
	 * 订单id
	 */
   	@TableId(value = "order_id" )
	private String orderId;

	/**
	 * 用户id
	 */
   	@TableField(value = "user_id" )
	private String userId;

	/**
	 * 消费店铺id
	 */
   	@TableField(value = "store_id" )
	private String storeId;

	/**
	 * 订单状态 0未支付 1已支付
	 */
   	@TableField(value = "order_state" )
	private String orderState;

	/**
	 * 是否使用积分 0否，1是
	 */
   	@TableField(value = "use_point" )
	private Long usePoint;

	/**
	 * 订单总价
	 */
   	@TableField(value = "order_cost" )
	private Long orderCost;

	/**
	 * 优惠金额
	 */
   	@TableField(value = "discount" )
	private Long discount;

   	/**
	 * 获得积分
	 */
   	@TableField(value = "get_point" )
	private Long getPoint;

	/**
	 * 支付交易号
	 */
   	@TableField(value = "ali_trade_num" )
	private String aliTradeNum;

	/**
	 * 支付方式 1支付宝 2微信
	 */
   	@TableField(value = "pay_method" )
	private String payMethod;

	/**
	 * 订单创建时间
	 */
   	@TableField(value = "create_time" )
	private Date createTime;

	/**
	 * 支付时间
	 */
   	@TableField(value = "pay_time" )
	private Date payTime;
}
